import request from "@/utils/request.js";

// import jd_request from "@/utils/jd_request.js";

export function submit_tour(data){
	return request({
		API_URL:'/third_epay/api/submit_tour',
		data
	})
}
export function sub_tour_order(data){
	return request({
		API_URL:'/users/order/sub_tour_order',
		data
	})
}
export function ad_list(data) {
	return request({
		API_URL: '/users/index/ad_list',
		data
	})
}

export function street_list(data) {
	return request({
		API_URL: '/users/index/street_list',
		data
	})
}

export function street_type(){
	 return request({
	 	API_URL: '/users/index/street_type',
	 })
}

export function goods_link(data) {
	return request({
		API_URL: '/users/goods/goods_link',
		data
	});
}

export function goods_group(data) {
	return request({
		API_URL: '/users/goods/goods_group',
		data
	});
}

//每日好店
export function supplier_list(data) {
	return request({
		API_URL: '/users/index/supplier_list',
		data
	});
}

export function cate_list_all() {
	return request({
		API_URL: '/users/index/cate_list_all'
	})
}

export function cate_list_all_shop(data) {
	return request({
		API_URL: '/users/shop/cate_list_all',
		data
	})
}

export function cate_list(data) {
	return request({
		API_URL: '/users/index/cate_list',
		data
	})
}

export function search_goods(data) {
	return request({
		API_URL: '/users/shop/search_goods',
		data
	})
}

export function promote_list(data) {
	return request({
		API_URL: '/users/index/promote_list',
		data
	})
}

export function goods_info(data) {
	return request({
		API_URL: '/users/goods/goods_info',
		data
	})
}

export function cart_add(data) {
	return request({
		API_URL: '/users/cart/cart_add',
		data
	})
}

export function del_collect_goods(data) {
	return request({
		API_URL: '/users/personal/del_collect_goods',
		data
	})
}

export function cart_number(data) {
	return request({
		API_URL: '/users/cart/cart_number',
		data
	})
}

export function goods_poster(data) {
	return request({
		API_URL: '/users/upload/goods_poster',
		data
	})
}

export function cart_list(data) {
	return request({
		API_URL: '/users/cart/cart_list',
		data
	})
}

export function bonus_list(data) {
	return request({
		API_URL: '/users/shop/bonus_list',
		data
	})
}

export function bonus_get(data) {
	return request({
		API_URL: '/users/shop/bonus_get',
		data
	})
}

export function cart_del(data) {
	return request({
		API_URL: '/users/cart/cart_del',
		data
	})
}

export function cart_edit(data) {
	return request({
		API_URL: '/users/cart/cart_edit',
		data
	})
}

export function buy_now(data) {
	return request({
		API_URL: '/users/order/buy_now',
		data
	})
}


export function exchange_buy_now(data) {
	return request({
		API_URL: '/users/exchange/buy_now',
		data
	})
}


export function picked_up_list(data) {
	return request({
		API_URL: '/users/shop/picked_up_list',
		data
	})
}

export function buy_now_batch(data) {
	return request({
		API_URL: '/users/order/buy_now_batch',
		data
	})
}

//获取下单可用红包(立即购买)
export function get_order_bonus_now(data) {
	return request({
		API_URL: '/users/order/get_order_bonus_now',
		data
	})
}

//获取下单可用红包
export function get_order_bonus(data) {
	return request({
		API_URL: '/users/order/get_order_bonus',
		data
	})
}

export function pay_list(data) {
	return request({
		API_URL: '/users/shop/pay_list',
		data
	})
}

export function bank_list(data) {
	return request({
		API_URL: '/users/shop/bank_list',
		data
	})
}

export function sub_order_now_bath(data) {
	return request({
		API_URL: '/users/order/sub_order_now_bath',
		data
	})
}

export function sub_order_now(data) {
	return request({
		API_URL: '/users/order/sub_order_now',
		data
	})
}

export function epay_submit(data) {
	return request({
		API_URL: '/epay/api/submit',
		data
	})
}

export function third_epay_submit(data) {
	return request({
		API_URL: '/third_epay/api/submit',
		data
	})
}


export function get_pay_code(data) {
	return request({
		API_URL: '/users/order/get_pay_code',
		data
	})
}

export function order_list(data) {
	return request({
		API_URL: '/users/personal/order_list',
		data
	})
}

export function surplus_pay(data) {
	return request({
		API_URL: '/users/order/surplus_pay',
		data
	})
}

export function exchange_goods_list(data) {
	return request({
		API_URL: '/users/exchange/goods_list',
		data
	})
}

export function shop_info(data) {
	return request({
		API_URL: '/users/user_shop/shop_info',
		data
	})
}

export function edit_shop(data) {
	return request({
		API_URL: '/users/Distributes/edit_shop',
		data
	})
}

export function distributes_order_list(data) {
	return request({
		API_URL: '/users/Distributes/order_list',
		data
	})
}

export function get_sale_goods_list(data) {
	return request({
		API_URL: '/users/Distributes/get_sale_goods_list',
		data
	})
}

export function edit_sale_goods(data) {
	return request({
		API_URL: '/users/Distributes/edit_sale_goods',
		data
	})
}

export function get_distributes_goods_list(data) {
	return request({
		API_URL: '/users/Distributes/get_distributes_goods_list',
		data
	})
}

export function get_dis_supplier(data) {
	return request({
		API_URL: '/users/Distributes/get_dis_supplier',
		data
	})
}

export function add_sale_goods(data) {
	return request({
		API_URL: '/users/Distributes/add_sale_goods',
		data
	})
}

export function self_order_discount(data) {
	return request({
		API_URL: '/users/Distributes/self_order_discount',
		data
	})
}

export function hot_list(data) {
	return request({
		API_URL: '/users/index/hot_list',
		data
	})
}

export function brand_list(data) {
	return request({
		API_URL: '/users/index/brand_list',
		data
	})
}



export function shop_desc(data) {
	return request({
		API_URL: '/users/shop/shop_desc',
		data
	})
}

export function shop_info_head(data) {
	return request({
		API_URL: '/users/shop/shop_info',
		data
	})
}

export function add_collect_shop(data) {
	return request({
		API_URL: '/users/personal/add_collect_shop',
		data
	})
}

export function del_collect_shop(data) {
	return request({
		API_URL: '/users/personal/del_collect_shopid',
		data
	})
}

export function shop_ad_list(data) {
	return request({
		API_URL: '/users/shop/ad_list',
		data
	});
}

export function shop_cate_list(data) {
	return request({
		API_URL: '/users/shop/cate_list',
		data
	});
}

export function photo_list(data) {
	return request({
		API_URL: '/users/shop/photo_list',
		data
	});
}

export function article_list(data) {
	return request({
		API_URL: '/users/shop/article_list',
		data
	});
}

//商家动态详情
export function store_article_info(data) {
	return request({
		API_URL: '/users/shop/article_info',
		data
	});
}

export function repair_point_list(data) {
	return request({
		API_URL: '/users/shop/repair_point_list',
		data
	});
}

export function repair_goods_list(data) {
	return request({
		API_URL: '/users/after_sale/repair_goods_list',
		data
	});
}

export function xy(data) {
	return request({
		API_URL: '/users/index/xy',
		data
	});
}

export function supplier_rank(data){
	return request({
		API_URL: '/users/index/supplier_rank',
		data
	})
}

export function supplier_type(data){
	return request({
		API_URL: '/users/index/supplier_type',
		data
	})
}


export function sub_exchange(data){
	return request({
		API_URL: '/users/exchange/sub_exchange',
		data
	})
}

export function users_goods_list(data){
	return request({
		API_URL: '/users/personal/users_goods_list',
		data
	})
}

export function users_goods_sale(data){
	return request({
		API_URL: '/users/personal/users_goods_sale',
		data
	})
}

export function users_goods_del(data){
	return request({
		API_URL: '/users/personal/users_goods_del',
		data
	})
}

export function add_users_goods(data){
	return request({
		API_URL: '/users/personal/add_users_goods',
		data
	})
}

export function users_goods_info(data){
	return request({
		API_URL: '/users/personal/users_goods_info',
		data
	})
}

export function self_order_list(data){
	return request({
		API_URL: '/users/Distributes/self_order_list',
		data
	})
}

//自销商品订单列表（购买会员）
export function sale_self_order_list(data){
	return request({
		API_URL: '/users/personal/self_order_list',
		data
	})
}


export function users_shop_goods_list(data){
	return request({
		API_URL: '/users/user_shop/users_goods_list',
		data
	})
}

//查询小店分销商品
export function get_shop_sale_goods_list(data){
	return request({
		API_URL: '/users/user_shop/get_shop_sale_goods_list',
		data
	})
}


//分销购物车列表
export function distributes_cart_list(data){
	return request({
		API_URL: '/users/distributes_cart/cart_list',
		data
	})
}

//分销加入购物车
export function distributes_cart_add(data){
	return request({
		API_URL: '/users/distributes_cart/cart_add',
		data
	})
}


//分销编辑购物车
export function distributes_cart_edit(data){
	return request({
		API_URL: '/users/distributes_cart/cart_edit',
		data
	})
}

//分销删除购物车
export function distributes_cart_del(data){
	return request({
		API_URL: '/users/distributes_cart/cart_del',
		data
	})
}



//订单统计
export function order_total(data){
	return request({
		API_URL: '/users/personal/order_total',
		data
	})
}

//维修列表
export function repair_list(data){
	return request({
		API_URL: '/users/personal/repair_list',
		data
	})
}

export function add_repair_order(data){
	return request({
		API_URL: '/users/personal/add_repair_order',
		data
	})
}

export function repair_info(data){
	return request({
		API_URL: '/users/personal/repair_info',
		data
	})
}

//小店自销商品详情（购买会员）
export function sale_users_goods_info(data){
	return request({
		API_URL: '/users/user_shop/users_goods_info',
		data
	})
}

//小店加购物车(自销)
export function self_cart_add(data){
	return request({
		API_URL: '/users/cart/self_cart_add',
		data
	})
}

//自销购物车列表
export function self_cart_list(data){
	return request({
		API_URL: '/users/cart/self_cart_list',
		data
	})
}

//自销购物车数量
export function self_cart_number(data){
	return request({
		API_URL: '/users/cart/self_cart_number',
		data
	})
}

export function self_cart_del(data){
	return request({
		API_URL: '/users/cart/self_cart_del',
		data
	})
}

export function self_cart_edit(data){
	return request({
		API_URL: '/users/cart/self_cart_edit',
		data
	})
}

export function self_cart_order(data){
	return request({
		API_URL: '/users/order/self_cart_order',
		data
	})
}

export function self_sub_order(data){
	return request({
		API_URL: '/users/order/self_sub_order',
		data
	})
}

//自销自动支付(市场平台使用)
export function self_submit(data){
	return request({
		API_URL: '/epay/api/self_submit',
		data
	})
}

export function self_sale_submit(data){
	return request({
		API_URL: '/third_epay/api/self_submit',
		data
	})
}

//自销商品订单详情
export function self_order_info(data){
	return request({
		API_URL: '/users/Distributes/self_order_info',
		data
	})
}

//自销商品订单详情（购买会员）
export function self_sale_order_info(data){
	return request({
		API_URL: '/users/personal/self_order_info',
		data
	})
}

//结算页面
export function cart_order(data){
	return request({
		API_URL: '/users/order/cart_order',
		data
	})
}

//提交订单
export function sub_order(data){
	return request({
		API_URL: '/users/order/sub_order',
		data
	})
}


export function groupbuy_list(data) {
    return request({
        API_URL: '/users/groupbuy/get_list',
        data
    });
}


export function seckill_list(data) {
    return request({
        API_URL: '/users/seckill/get_list',
        data
    });
}


export function auction_list(data) {
    return request({
        API_URL: '/users/auction/get_list',
        data
    });
}

export function presale_list(data) {
    return request({
        API_URL: '/users/presale/get_list',
        data
    });
}

export function favourable_list(data) {
    return request({
        API_URL: '/users/Favourable/get_list',
        data
    });
}

//团购商品详情
export function goods_info_gbs(data){
	return request({
		API_URL: '/users/goods/goods_info_gbs',
		data
	})
}

//团购商品购买
export function sub_order_gbs(data){
	return request({
		API_URL: '/users/order/sub_order_gbs',
		data
	})
}

//秒杀商品详情
export function goods_info_seckill(data){
	return request({
		API_URL: '/users/goods/goods_info_seckill',
		data
	})
}

//开启关闭个人小店
export function close_shop(data){
	return request({
		API_URL: '/users/user_shop/close_shop',
		data
	})
}


//发货
export function self_order_send(data){
	return request({
		API_URL: '/users/Distributes/self_order_send',
		data
	})
}

//市场商品列表
export function plat_goods_list(data){
	return request({
		API_URL: '/users/goods/plat_goods_list',
		data
	})
}

//添加自销订单沟通记录
export function self_order_reply_add(data){
	return request({
		API_URL: '/users/personal/self_order_reply_add',
		data
	})
}

export function self_order_cancel(data){
	return request({
		API_URL: '/users/personal/self_order_cancel',
		data
	})
}

export function supplier_kefu(data){
	return request({
		API_URL: '/users/notice/supplier_kefu',
		data
	})
}

export function sub_order_pin(data){
	return request({
		API_URL: '/users/order/sub_order_pin',
		data
	})
}

export function join_order_pin(data){
	return request({
		API_URL: '/users/order/join_order_pin',
		data
	})
}

export function submit_pin_join(data){
	return request({
		API_URL: '/third_epay/api/submit_pin_join',
		data
	})
}

export function submit_pin(data){
	return request({
		API_URL: '/third_epay/api/submit_pin',
		data
	})
}

export function users_shop_list(data){
	return request({
		API_URL: '/users/shop/users_shop_list',
		data
	})
}

export function search_user_goods_supplier(data){
	return request({
		API_URL: '/users/shop/search_user_goods',
		data
	})
}

export function add_goods_pin(data){
	return request({
		API_URL: '/users/personal/add_goods_pin',
		data
	})
}

export function self_join_pin_order(data){
	return request({
		API_URL: '/users/order/self_join_pin_order',
		data
	})
}

export function self_pin_order(data){
	return request({
		API_URL: '/users/order/self_pin_order',
		data
	})
}

export function fatuan(data){
	return request({
		API_URL: '/users/personal/fk',
		data
	})
}

export function pindan_list(data){
	return request({
		API_URL: '/users/personal/pindan_list',
		data
	})
}

export function self_sub_order_now(data){
	return request({
		API_URL: '/users/order/self_sub_order_now', 
		data
	})
}

export function del_users_goods_img(data){
	return request({
		API_URL: '/users/personal/del_users_goods_img', 
		data
	})
}

export function del_users_goods_product(data){
	return request({
		API_URL: '/users/user_shop/del_users_goods_product', 
		data
	})
}

export function upload_users_goods_img(data){
	return request({
		API_URL: '/users/personal/upload_users_goods_img', 
		data
	})
}

//分销提交订单立即购买
export function distributes_sub_order_now(data){
	return request({
		API_URL: '/users/distributes_cart/sub_order_now',
		data
	})
}

//分销商品详情
export function rent_info(data){
	return request({
		API_URL: '/users/goods/rent_info', 
		data
	})
}

//分销提交订单 （会员商品）
export function sub_order_fx(data){
	return request({
		API_URL: '/users/distributes_cart/sub_order_fx',
		data
	})
}

//分销提交订单(分销购物车)
export function distributes_sub_order(data){
	return request({
		API_URL: '/users/distributes_cart/sub_order',
		data
	})
}

//分销结算页面
export function distributes_cart_order(data){
	return request({
		API_URL: '/users/distributes_cart/cart_order',
		data
	})
}

export function sub_order_pre(data){
	return request({
		API_URL: '/users/order/sub_order_pre',
		data
	})
}

export function post_cate(data){
	return request({
		API_URL: '/users/index/post_cate',
		data
	})
}